luci-app-acme: fixed the issue where certificates were not displaying (#8151)
authorzhusir <[email protected]>
Mon, 15 Dec 2025 12:03:02 +0000 (20:03 +0800)
committerGitHub <[email protected]>
Mon, 15 Dec 2025 12:03:02 +0000 (13:03 +0100)
* luci-app-acme: fixed the issue where certificates were not displaying

applications/luci-app-acme/htdocs/luci-static/resources/view/acme/acme.js

index 9b0950836735fb093dc5ff5ccc7911c3ea5eacd1..31556cb3a0a0c0aa112bde4dceed1f7a95d13e2e 100644 (file)
@@ -12,7 +12,7 @@ return view.extend({
                        L.resolveDefault(fs.list('/etc/ssl/acme/'), []).then(files => {
                                let certs = [];
                                for (let f of files) {
-                                       if (f.type == 'file' && f.name.match(/\.fullchain\.crt$/)) {
+                                       if (f.name.match(/\.fullchain\.crt$/)) {
                                                certs.push(f);
                                        }
                                }